<?php
if($act=="edit")
{
    $sql_select = "select * from tbladvertise where iAdvertiseId='$id'";
	$rs         =$dbsql->query($sql_select);
	if($dbsql->num_rows($rs)==0)
    {
        page_transfer("Advertise not exists");
    }
    $advertise  = $dbsql->fetch_array($rs);
}
?>